<:!:/>

@file c.edit-ALSO.html
@author Alejandro Dario Simi
@date $Date: 2013-07-05 14:30:06 +0000 (Fri, 05 Jul 2013) $

$Id: c.edit-ALSO.html 89 2013-07-05 14:30:06Z daemonraco@gmail.com $
$URL: http://wcomix.googlecode.com/svn/tags/wcomix-1.0.0.1/extensions/TagsRelator/templates/c.edit-ALSO.html $

<::/>
<form id="SumbittingForm" class="Formulary" action="<:VAR:/>form-action<::/>" method="post">
	<input type="hidden" id="SumbittingFormAction"     name="EDITACTION"  value="ADD"/>
	<input type="hidden" id="SumbittingFormMode"       name="MODE"        value="ALSO"/>
	<table><tr>
		<td class="Label">Rename Action:</td><td class="Value"><input type="text" name="ACTION_NAME" class="Full" value="<:VAR:/>RULE-ACTION-NAME<::/>"/></td>
	</tr><tr>
		<td class="Label">Tag to look for:</td><td class="Value"><input type="text" class="TARE_SelectableTags Full" id="ACTION_TARGET" name="ACTION_TARGET" value="<:VAR:/>target<::/>"/></td>
	</tr><tr>
		<td class="Label">Tags to add:</td><td class="Value"><ul class="Tags">
			<:OVER:list=also:/><li>
				<input type="checkbox" id="TAG_<:VAR:/>id<::/>" name="TAG_<:VAR:/>id<::/>"/><label for="TAG_<:VAR:/>id<::/>"><:VAR:/>name<::/></label>
				<a href="?action=<:VAR:/>WC_ACTION_TAG_SHOW<::/>&group=<:VAR:/>GROUP-ID<::/>&tag=<:VAR:/>id<::/>">
					<img src="<:VAR:/>TARE-URI<::/>/images/link-icon.png" style="height:12px;width:12px;" alt="[+]"/>
				</a>
			</li><::/>
		</ul></td>
	</tr><tr>
		<td class="Label">Add tags:</td><td class="Value"><input type="text" class="TARE_SelectableTags Full" id="ACTION_TAGS" name="ACTION_TAGS" onSubmit="$('#SumbittingFormAction').val('ADD')"/></td>
	</tr><tr>
		<td colspan="2" class="Buttons">
			<input type="submit" value="Send"            onclick="$('#SumbittingFormAction').val('ADD');   return true;"/>
			<input type="submit" value="Remove Selected" onclick="$('#SumbittingFormAction').val('REMOVE');return true;"/>
			<input type="submit" value="Done"            onclick="TARE_Done(<:VAR:/>RULE-ID<::/>);         return false;"/>
		</td>
	</tr></table>
</form>
<script type="text/javascript">
	if($("#ACTION_TARGET").val() == "") {
		$("#ACTION_TARGET").focus();
	} else {
		$("#ACTION_TAGS").focus();
	}
</script>
